package com.gf.common.util;

import javax.servlet.http.HttpServletRequest;

public class RequestContainer {
	private static final ThreadLocal<HttpServletRequest> THREAD_CONTEXT = new ThreadLocal<HttpServletRequest>();
	
	static HttpServletRequest getRequest() {
		return THREAD_CONTEXT.get();
	}

	static void removeRequest() {
		THREAD_CONTEXT.remove();
	}

	static void setRequest(HttpServletRequest request) {
		THREAD_CONTEXT.set(request);
	}
	
	
}
